import request from "@/utils/request";

export function upload(data) {
    return request({
        method: 'post',
        url: '/host/upload',
        data
    })
}


export function getImg() {
    return request({
        method: 'get',
        url: '/host/getimg',
    })
}

export function getHost() {
    return request({
        method: 'get',
        url: '/host/apply',
    })
}


export function applyHost(data) {
    return request({
        method: 'post',
        url: '/host/apply',
        data
    })
}



export function changeHost(data) {
    return request({
        method: 'put',
        url: '/host/apply',
        data
    })
}

export function getAll() {
    return request({
        method: 'get',
        url: '/host/get',
    })
}